﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WuZu.IDAL;
using WuZu.Model;

namespace WuZu.DAL
{
    public partial class AdmininfoDAL:BaseDAL<Model.admininfo>,IAdmininfoDAL
    {
        /// <summary>
        /// 获取该账户信息
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public Model.admininfo Login(string name)
        {
            return dbContext.Set<admininfo>().Where(m=>m.phone==name).FirstOrDefault();
            
        }
    }
}
